<?php

namespace App\Http\Middleware;

class JwtHome
{

    use \App\Http\Controllers\Responser;

	public function handle ($req, \Closure $next)
	{
//        return $req->user()||auth('admin')->check() ? $next($req) : $this->resLogin('尚未登录或登录超时。');
        return $req->user() ? $next($req) : $this->resLogin('尚未登录或登录超时。');
	}

}
